package com.syni.mdd.sjb.common.datatreaure.controller.protect.share;

import com.syni.mdd.sjb.common.component.utils.common.utils.AppConfig;
import com.syni.mdd.sjb.common.component.utils.common.utils.ResultMapHelper;
import com.syni.mdd.sjb.common.datatreaure.constants.ResultMsg;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.share.shareVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("page")
public class ShareController {


    @PostMapping("share")
    @ApiOperation(value = "分享接口")
    public Map<String,Object> share(@RequestBody shareVo shareVo){
        String url = AppConfig.getProperty("service.share.page") + shareVo.getId();
        return ResultMapHelper.success(url,ResultMsg.MSG_GET_SUCCESS);
    }
}
